package com.mingqijia.gassafety.db.hangzhou.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 杭州对接-物模型属性
 * </p>
 *
 * @author wanghai
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_hz_thing_model_property")
@ApiModel(value="ThingModelProperty对象", description="杭州对接-物模型属性")
public class ThingModelProperty extends BaseEntity {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "产品ID")
    @TableField("product_key")
    private String productKey;

    @ApiModelProperty(value = "属性名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "属性标识符")
    @TableField("identifier")
    private String identifier;

    @ApiModelProperty(value = "属性数据类型")
    @TableField("data_type")
    private String dataType;

    @ApiModelProperty(value = "读写类型")
    @TableField("rw_flag")
    private String rwFlag;

    @ApiModelProperty(value = "单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "单位名称")
    @TableField("unit_name")
    private String unitName;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "数据定义")
    @TableField("dataSpecs")
    private String dataSpecs;


}
